﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;

namespace TimerTool
{
    public partial class Form2 : Form
    {
        public string message { get; set; }
        public string timer { get; set; }

        public Form2(string message,string timer)
        {
            this.message = message;
            this.timer = timer;
            
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void Form2_Load(object sender, EventArgs e)
        {
            this.StartPosition = FormStartPosition.CenterScreen;
            this.msg.Text = this.message;
            this.curtime.Text = this.timer;
            this.TopMost = true;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void Form2_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void msg_Click(object sender, EventArgs e)
        {

        }
    }
}
